enum status {
    "未审批" = 0,
    "部门经理已审批" = 1,
    "副总经理已审批" = 2,
    "总经理已审批" = 3
}

class fields {
    staffId: string = "";
    beginTime: string = "";
    endTime: string = "";
    reason: string = "";
    category: string = "";
    status;
    dManagerIdea: string = "";
    vManagerIdea: string = "";
    managerIder: string = "";
    username: string = "";
}

export class Holidays {
    pk: string = "";
    fields: fields = new fields();

    constructor() {
        
    }

    setID(staffId: string) {
        this.fields.staffId = staffId;
    }
    
    public setBeginTime(beginTime: string) {
        this.fields.beginTime = beginTime;
    }
    
    setEndTime(endTime: string) {
        this.fields.endTime = endTime;
    }
    
    setReason(reason: string) {
        this.fields.reason = reason;
    }
    
    setCategory(category: string) {
        this.fields.category = category;
    }
}

export class postHolidays {
    beginTime: string;
    endTime: string;
    category: string;
    reason: string;
    staffId: string;
    username: string;
  
    constructor(beginTime: string, endTime: string, category: string, reason: string, staffId: string, username: string) {
      this.beginTime = beginTime;
      this.category = category;
      this.endTime = endTime;
      this.reason = reason;
      this.staffId = staffId;
      this.username = username;
    }
}

export class postPatchHolidays {
    flag: string;
    reason: string;
    username: string;

    constructor(flag: string, reason: string, username: string) {
        this.flag = flag;
        this.reason = reason;
        this.username = username;
    }
}